Revert "button: Stop setting state flags on the style context for drawing"
authorRui Matos <tiagomatos@gmail.com>
Wed, 21 Dec 2011 23:41:50 +0000 (23:41 +0000)
committerRui Matos <tiagomatos@gmail.com>
Mon, 9 Jan 2012 16:45:44 +0000 (16:45 +0000)
Setting state flags is actually needed here since this function is called by
GtkButton subclasses which add their specific state flags as a parameter.

This reverts commit e868b8d6ea04af6e31d7075d09508689873c0df5.

gtk/gtkbutton.c

index d0d905f7ae6f7b24f6bec9a2f4a45547179684fb..f6474f353b33f0ad5d7baa9edfec649607b95b6c 100644 (file)
@@ -1701,6 +1701,7 @@ _gtk_button_paint (GtkButton          *button,
   context = gtk_widget_get_style_context (widget);
 
   gtk_style_context_save (context);
+  gtk_style_context_set_state (context, state);
 
   gtk_button_get_props (button, &default_border, &default_outside_border, NULL, NULL, &interior_focus);
   gtk_style_context_get_style (context,